# Dockerfile used by OSBS and by prow CI.
FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83 AS builder
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g22a40ce.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g22a40ce.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=22a40ce OS_GIT_VERSION=4.10.0-202202160023.p0.g22a40ce.assembly.stream-22a40ce SOURCE_DATE_EPOCH=1636727784 SOURCE_GIT_COMMIT=22a40ce77a1c3d4842b80de89f4df449672e5f5e SOURCE_GIT_TAG=v0.2.2-72-g22a40ce SOURCE_GIT_URL=https://github.com/openshift/configmap-reload 
WORKDIR /go/src/github.com/jimmidyson/configmap-reload
COPY . .
ENV GOFLAGS="-mod=vendor"
RUN make out/configmap-reload

FROM openshift/ose-base:v4.10.0.20220216.010142
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g22a40ce.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g22a40ce.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=22a40ce OS_GIT_VERSION=4.10.0-202202160023.p0.g22a40ce.assembly.stream-22a40ce SOURCE_DATE_EPOCH=1636727784 SOURCE_GIT_COMMIT=22a40ce77a1c3d4842b80de89f4df449672e5f5e SOURCE_GIT_TAG=v0.2.2-72-g22a40ce SOURCE_GIT_URL=https://github.com/openshift/configmap-reload 

ARG FROM_DIRECTORY=/go/src/github.com/jimmidyson/configmap-reload
COPY --from=builder ${FROM_DIRECTORY}/out/configmap-reload  /usr/bin/configmap-reload

USER nobody

ENTRYPOINT ["/usr/bin/configmap-reload"]

LABEL \
        io.k8s.display-name="configmap reload" \
        io.k8s.description="This is a component reloads another process if a configured configmap volume is remounted." \
        io.openshift.tags="kubernetes" \
        summary="This is a component reloads another process if a configured configmap volume is remounted." \
        maintainer="OpenShift Monitoring Team <team-monitoring@redhat.com>" \
        License="ASL 2.0" \
        vendor="Red Hat" \
        name="openshift/ose-configmap-reloader" \
        com.redhat.component="configmap-reload-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Monitoring" \
        release="202202160023.p0.g22a40ce.assembly.stream" \
        io.openshift.build.commit.id="22a40ce77a1c3d4842b80de89f4df449672e5f5e" \
        io.openshift.build.source-location="https://github.com/openshift/configmap-reload" \
        io.openshift.build.commit.url="https://github.com/openshift/configmap-reload/commit/22a40ce77a1c3d4842b80de89f4df449672e5f5e" \
        version="v4.10.0"

